home *** CD-ROM | disk | FTP | other *** search
- {
-
- Example which adds a menu item to a message window,
- a button to the main toolbar and shows some ways
- of using Outlooks COM interface.
-
- Extensions key:
-
- 4.0;m:\src\test\outlook\helloworld2\helloworld2.DLL;1;010001;1000000
-
- }
-
-
-
- library Example2;
-
- uses
- SysUtils,
- Classes,
- Dialogs,
- ExchExt,
- ComExample2 in 'ComExample2.pas';
-
-
- {$R Example2.RES}
-
-
- function ExchEntryPoint: pointer; cdecl;
- var
- ExchExt: IExchExt;
- begin
- try
- ExchExt := TExchExt.Create;
- ExchExt._AddRef;
- Result := pointer(ExchExt);
- except
- on E:Exception do begin
- ShowMessage('Could not install custom Exchange Extsion: ' + E.Message);
- Result := nil;
- end;
- end;
- end;
-
-
- exports
- ExchEntryPoint index 1;
-
-
- begin
- end.
-